Skip to content

[Test] Update Permission Denial Snapshots for the New Runtime Message - #2357

Draft
MRayermannMSFT wants to merge 6 commits into
mainfrom
dev/mrayermannmsft/other/update-permission-denial-snapshots
Draft

[Test] Update Permission Denial Snapshots for the New Runtime Message#2357
MRayermannMSFT wants to merge 6 commits into
mainfrom
dev/mrayermannmsft/other/update-permission-denial-snapshots

Conversation

@MRayermannMSFT

@MRayermannMSFT MRayermannMSFT commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

What

This change updates three permission snapshots so they carry the denial text the runtime sends after github/copilot-agent-runtime#16319. The tool result for a UserNotAvailable decision gains a trailing full stop.

Why

That pull request makes permission denials name what was refused. The E2E suites here replay against these snapshots, and the proxy matches a request only when every message is identical, so the old text no longer matches and the permission tests fail with No cached response found.

Merge this after the runtime ships, not before

This repository tests against the published @github/copilot (^1.0.81-4 in nodejs/package.json), not against a runtime branch. That creates a two-sided ordering constraint:

  • This pull request cannot be green now. Its CI runs the new snapshots against the published runtime, which still emits the old text. Every language suite fails on No cached response found, which is expected and is not a defect in this change.
  • Merging it early would turn main red here for the same reason, until a runtime containing #16319 is published.

The runtime pull request merges first. Its "Copilot SDK C# tests" legs are non-blocking precisely so a cross-repo text change can land in this order. Once a runtime carrying #16319 is published, this becomes mergeable and both repositories are green.

Kept as a draft so it is not merged ahead of that.

@MRayermannMSFT
MRayermannMSFT marked this pull request as ready for review August 19, 2026 18:47
@MRayermannMSFT
MRayermannMSFT requested a review from a team as a code owner August 19, 2026 18:47
Copilot AI balanced review requested due to automatic review settings August 19, 2026 18:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates permission replay snapshots to match the runtime’s revised denial message.

Changes:

  • Adds the trailing full stop to three UserNotAvailable tool results.
  • Preserves existing stable error assertions.
Show a summary per file
File Description
test/snapshots/permissions/should_handle_permission_handler_errors_gracefully.yaml Updates handler-error denial text.
test/snapshots/permissions/should_deny_tool_operations_when_handler_explicitly_denies.yaml Updates explicit-denial text.
test/snapshots/permissions/should_deny_tool_operations_when_handler_explicitly_denies_after_resume.yaml Updates resumed-session denial text.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Balanced

- role: tool
tool_call_id: toolcall_1
content: Permission denied and could not request permission from user
content: Permission denied and could not request permission from user.
@MRayermannMSFT
MRayermannMSFT marked this pull request as draft August 20, 2026 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants